Detection of demarcating segments in video

ABSTRACT

A method of detecting frames in a video that demarcate a pre-determined type of video segment within the video is provided. The method includes identifying visually distinctive candidate marker frames within the video, grouping the candidate marker frames into a plurality of groups based on visual similarity, computing a collective score for each of the groups based on temporal proximity of each of the candidate marker frames within the group to related events occurring within the video, and selecting at least one of the groups based on the collective proximity scores as marker frames that demarcate the pre-determined type of video segment. A video processing electronic device and at least one non-transitory computer readable storage medium having computer program instructions stored thereon for performing the method are also provided.

BACKGROUND

Broadband network operators, such as multiple system operators (MSOs),distribute and deliver services such as video, audio, and multimediacontent to subscribers or end-users. For example, a broadband cablenetwork MSO may utilize resources for transmitting digital video aslinear (i.e., scheduled) services or as non-linear services enablingviewers to retrieve audiovisual contents at any time independent fromlinear (i.e., scheduled) broadcast services. Non-linear services may betime-displaced, for instance, by only a few minutes or by many monthsfrom its corresponding linear broadcast service or may be repeatconsumption of a program.

Highlight or replay viewing of content provides a specific example ofnon-linear viewing. For instance, a viewer that may not have sufficientfree time to watch a three hour sports contest, such as a football game,from beginning to end may instead view the game at a later time on anynumber of different types of electronic viewing devices. For instance,viewing may be accomplished with a portable device with an objective ofonly watching plays of a specific team, plays involving a specificplayer, or exciting moments occurring within a game.

Professionally produced sports video typically includes the use ofreplay clips or video segments which necessarily correlate with excitingmoments or highlights occurring within a game. The ability to view suchhighlights and/or replays as a non-linear service may be particularlydesirable for users that are only able to start watching a game afterits start so that the viewer may quickly catch up on what has occurredin the game or such viewing may enable a viewer to quickly ascertain theessence of a completed game.

BRIEF DESCRIPTION OF THE DRAWINGS

Various features of the embodiments described in the following detaileddescription can be more fully appreciated when considered with referenceto the accompanying figures, wherein the same numbers refer to the sameelements.

FIG. 1 is a simplified diagram providing examples of different markerframes within a video in accordance with an embodiment.

FIG. 2 is a diagram representing a process for detecting marker frameswithin a video in accordance with an embodiment.

FIG. 3 is a diagram representing a process for detecting marker frameswithin a video in accordance with an embodiment.

FIG. 4A and FIG. 4B are an example of a set of histograms generated fora frame of video in accordance with an embodiment.

FIG. 5 is a probability distribution plot for frames within a video inaccordance with an embodiment.

FIG. 6 is a magnified view of a portion of the probability distributionplot of FIG. 5 in accordance with an embodiment.

FIG. 7 is a diagram showing a step of selecting candidate marker framesfrom a probability distribution plot in accordance with an embodiment.

FIG. 8 is a diagram showing the frames of the video automaticallydetected as being marker frames in accordance with an embodiment.

FIG. 9 is a flow diagram of a process for automatic detection ofcandidate marker frames in accordance with an embodiment.

FIG. 10 is a flow diagram of a process for automatic identification ofmarker frames from candidate marker frames and for detectinghighlight/replay clips in a video in accordance with an embodiment.

FIG. 11 is a diagram comparing temporal proximity of candidate markerframes relative to highlight/replay clips within a video in accordancewith an embodiment.

DETAILED DESCRIPTION

For simplicity and illustrative purposes, the principles of theembodiments are described by referring mainly to examples thereof. Inthe following description, numerous specific details are set forth inorder to provide a thorough understanding of the embodiments. It will beapparent however, to one of ordinary skill in the art, that theembodiments may be practiced without limitation to these specificdetails. In some instances, well known methods and structures have notbeen described in detail so as not to unnecessarily obscure theembodiments.

According to an embodiment, a method and apparatus are provided enablinga highlight or replay service to be offered by a provider over a networkto subscribers as a non-linear service. The service enables automatic,high quality, replay extraction from video and playback of the extractedreplays to subscribers. Such a service may automatically extract andgenerate a sequence of highlight/replay clips within a given broadcastprogram, such as a football game, other sports contest, or the like. Forthis purpose, the method and apparatus should be able to readilyidentify highlight and replay clips or other clips of desire from videosequences to enable ready location and/or extraction thereof.

With respect to a video of a football game or the like, highlights andreplays may be detectable to some extent by heuristics, such aslocations in video where the use of telestration, slow motion, or theabsence of a score panel may be detected. However, these readilydetectable events are by nature non-exclusive and unreliable and maygenerate many false detections or may be unable to detect somehighlights or replays that do not contain such events.

According to an embodiment, highlight and replay clips are locatedwithin video based on the use, for instance, in professional broadcastsports video, of visual cues to signal the start and/or end ofhighlights and replays. Thus, highlight or replay sequences or clipswithin a video are demarcated by a sequence of visually distinctivevideo frames. For purposes of this disclosure, these sequences ofvisually distinctive frames are referred to as “marker frames” or“markers”. The sequence of marker frames is also referred to as ademarcating segment. A video may contain multiple demarcating segmentseach serving a different purpose, for instance, one to signal the startof a replay clip and another to signal the end of a replay clip.

According to an embodiment, a method and apparatus are provided that areable to automatically identify, verify, and apply marker frames within avideo for purposes of automatically generating a highlight/replay clipservice.

Different video programs, types of programs, producers of programs, etc.necessarily use different demarcating segments or visual cues. Moreover,demarcating segments used by a particular video producer may change fromone game to the next, from one part of the season to the next, and fromone season to the next. Thus, the method is required to identifydemarcating segments in each video and not rely on known demarcatingsegments previously identified in other videos. After the demarcatingsegments are identified within a given video, highlights and replaysfrom the given video can be reliably detected by matching the signaturesof the marker frames to the signatures of the video frames anddetermining their location within the video stream.

A demarcating segment typically involves the use of statically anddynamically visually distinct video frames because demarcating segmentsmust provide sufficiently strong visual stimuli to indicate the start orend of a replay clip or like segment of interest and demarcatingsegments must not be confused with other visual content, such as contentfrom other genre and advertisements.

According to an embodiment and based on the above information, videoframes from the video that are visually distinct are automaticallydetected. As an example of video frames, FIG. 1 provides five videoframes 10, 12, 14, 16, and 18 that each may be determined to be visuallydistinct from most other more common images within the frames of thevideo. However, only one of these frames 10, 12, 14, 16, and 18 mayactually be used in the video to demarcate the beginning of a replaysegment. The visually distinct frames are referred to herein as“candidate marker frames” and represent a subset of video frames of thevideo from which the true replay marker frame or frames are ultimatelydetermined. Thus, as shown in FIG. 2, a video 20 is subject to a step 22of identifying candidate marker frames and may sort some or all framesof the video 20 into a subset 24 of candidate marker frames and a subset26 of non-candidate marker frames.

For purposes of obtaining the candidate marker frames 24, selectedvisual features may be extracted and obtained from each frame of thevideo. An example of a visual feature may be, for instance, a set ofColor Layout Descriptors (CLDs) which capture spatial distribution ofcolor in an image or frame of video. Another example of visual featuresis the Edge Histogram Descriptor (EHD). Yet another example of visualfeature is the color histograms of color image. Different visualfeatures for a video frame can be combined into an augmented visualfeature. For example, combining CLD and EHD coefficients would formulatea 92 dimension vector, where 12 coefficients come from CLD and 80coefficients come from EHD. Based on the features from a frame unit(such as one or more consecutive frames), a statistical model for thevideo is generated. A probability vector for a frame unit is obtained byplugging the features from a frame unit into the statistical model. Theprobability vector may be used to automatically separate and identifyvisually distinct frames or candidate marker frames from remaining videoframes.

After the candidate marker frames 24 are extracted from the video, thecandidate marker frames 24 are grouped based on visual similarity into aplurality of different groups. In one embodiment, the candidate markerframes are grouped based on a subset of CLD coefficients, i.e., if thesubsets of coefficient values for two video frames are identical, thenthe two frames fall into the same group. One way to implement thisgrouping is to create a hashing key by concatenating the selected subsetof feature values into an integer. Other clustering methods, such asK-means or hierarchical clustering, can be used for the purpose ofgrouping. In another embodiment, the K-means clustering is used to groupthe candidate marker frames. See step 28 in FIG. 2 which results in theformation of five separate groups 30, 32, 34, 36 and 38 of candidatemarker frames for the example shown in FIG. 2. By way of example, ifidentical or highly similar candidate marker frames appear numeroustimes throughout a video, these candidate marker frames are likelylocated in the same group. Thus, at least some of the groups may consistof visually identical or similar but temporally scattered frames,because these frames belong to the demarcating segments which appearmultiple times in the video, whenever there is a replay clip. From thesegroups, the true replay marker frames are ultimately identified.

For purposes of identifying true replay marker frames from the groups ofcandidate marker frames, an embodiment provides each group with aproximity score. See step 40 in FIG. 2 applied to each of the groups 30,32, 34, 36 and 38 of candidate marker frames. The proximity scorerelates to temporal closeness of the candidate marker frames toso-called “input video events” that may possibly be contained in atleast some of the replay clips in a video, but not necessarily everyreplay clip in the video. For instance, there may be many readilydetectable events occurring within video for use in detecting a replayclip, such as the presence or absence of a score panel in video frames,the presence of telestration in video frames, or the use of slow motionin video frames.

Typically the so called “input video event” exists over a time periodstarting from the left boundary T_left to the right boundary T_right. Inone embodiment, in order to calculate the proximity score, a proximityfunction is defined for the left and right boundary respectively, overthe left window [T_left-K, T_left] and right [T_right, T_right+K], whereK is the length of the window. The function value can be proportional tothe proximity to the input video event, hence ascending at the leftwindow and descending as the right window. Alternatively, the functioncan be flat at either or both of the windows. The flat functionessentially defines a binary proximity score. In another embodiment, asingle frame is selected within the time period of the given input videoevent; in this case T_left=T_right.

Usually different marker frames are used to demarcate the start and endof a highlight/replay. However, sometimes the same sequence of markerframes is used to demarcate both the start and the end ofhighlight/replay. In general, each group of the candidate marker framesis subject to the test of proximity score for both start and end. Hence,if a group of marker frames demarcates both start and end ofhighlight/replay, it will receive high proximity score for both startand end.

A score panel that may be shown during a sporting event, such as afootball game, may disappear during replay. However, score panels mayalso be absent at the beginning of a game, during advertisements, orduring other segments of a game. Telestration may appear in some replaysegments, but not all replay segments. Slow motion may appear in somereplay segments, but not all replay segments. Although detecting replaysegments solely based on absence of score panel, detection oftelestration, or detection of slow motion events may be inherentlyunreliable or inconclusive, these events can be useful in step 40 foridentifying which group of the visually distinct candidate marker framesare the true marker frames of replay segments based on the developmentof a proximity score. The closer a candidate marker frame is temporallyto one of the above replay events (score panel absence, telestration,slow motion, etc.) the higher the proximity score. Collectively, thegroup of candidate marker frames that contains the true replay markerframes will produce a higher average proximity score, because theseframes collectively will be statistically closer, in time, to the givenreplay events.

Accordingly, after the proximity score is determined for each group 30′,32′, 34′, 36′ and 38′ of candidate marker frames in FIG. 2, the truemarker frames are selected in step 42 as the group having the proximityscore indicating the group that is collectively closer to the events.Thus, the true, or “seed”, marker frames are identified. As shown in theleft hand bottom corner of FIG. 2, group 38″ of candidate marker framesis selected as demarcating the beginning of each replay 44 and group 34″of candidate marker frames is selected as demarcating the end of eachreplay 44 occurring in the video 20. With this information producedautomatically, a video sequence consisting of only replay clipsextracted from video 20 can be readily generated and made available tosubscribers for video applications, such as non-linear consumption.

Thus, as shown in FIG. 2, a method may include the steps of identifying22 candidate marker frames 24 within a video 20, grouping 28 thecandidate marker frames 24 based on visual similarity, computing 40 ascore for each group based on the collective temporal proximity of itsconstituent frames to pre-detected events within the video, andselecting 42 the frames in one or more groups, based on the group'sscore, as marker frames of the start and/or end of replay clips. Basedon the selected marker frames, the video 20 may be searched, the markerframes may be matched to frames in the video 20 demarcating replaysegments 44, and the demarcated replay segments 44 within the video maybe extracted and used to create a highlight/replay video sequence.Alternatively, the final product may be a list of possible videosegments per the selected criteria (i.e., sports replays, in the aboveexample). Creating a highlight/replay video sequence may comprisecreating a new video sequence that is constructed from the concatenationof the several demarcated replay segments 44. The demarcated replaysegments may be concatenated in the order in which they appear in thevideo 20, or may be reordered by some other means. In anotherembodiment, the highlight/replay video sequence may include portions ofthe video 20 that occur adjacent to the replay segments 44. For example,the highlight/replay video sequence may include a portion of the video20 that occurs immediately before each demarcated replay segment 44.

A list of possible video segments may be used to create a video playbackapplication for a user. In one embodiment, the user may be presentedwith a sequence of the demarcated replay segments 44. Each segment maybe represented, for example, using a text description, time information,or one or more images. The user may then select the demarcated replaysegment 44 to play the segment. The user may select and watch onesegment at a time, or, for example, may choose several segments andwatch all selected segments in a sequence.

FIG. 3 provides further details of a method according to an embodiment.A video file 50 is subject to a process 52 of determining one or morereplay marker frames. For this purpose, each frame of the video file 50is transformed into a set of features, and the sets of featuresgenerated from one or more frames are used to generate a statisticalmodel or probability distribution of the set of features. For instance,in step 54, twelve coefficients of a Color Layout Descriptor (CLD) maybe calculated for each frame. See FIG. 4A and FIG. 4B as an example.Another example is to concatenate CLDs from five consecutive videoframes (thereby generating sixty histograms for each set of fiveconsecutive frames). In step 56, a CLD probability model is created forthe video file 50 based on the CLD values calculated in step 54. SeeFIG. 6 as an example. The video frames are then classified in step 58into candidate marker frames and non-candidate marker frames using theCLD values calculated in step 54 and the probability distributioncreated in step 56, and the candidate marker frames are grouped into oneor more groups based on visual similarity, for instance, by hashing.

As is well known in the art, hashing is a data storage method utilizinga key-value store. For each value to be stored, a hash function takesthe value to be stored as input and outputs a corresponding hash key.Subsequently, the value is then stored in the key-value store using thecomputed hash key. If multiple values correspond to the same hash key,then the multiple values are stored in a collection or list affiliatedwith the hash key. Grouping candidate marker frames into one or moregroups based on visual similarity may be accomplished by the choice ofthe hash function. In one embodiment, the hash function takes as inputthe CLD values and outputs an integer hash key. For example, if a firstCLD and a second CLD represent visually similar frames, then a hashfunction may output the same integer hash key for both CLDs. As aresult, storing the CLDs in a key-value store will result in the twovisually similar CLDs being stored together in the same collection orlist.

In one embodiment, the hash function may be computed by concatenating(bitwise operation) a selected subset of visual features into aninteger, which is used as the hash key.

In step 60 of FIG. 3, event information from other detectors (i.e., fortelestration, score panel presence or absence, slow motion, etc.) isused to calculate proximity scores for each group. For instance, see thegraph 62 of probability distribution provided in FIG. 3 in which atelestration event 64 occurring in the video is detected and proximityof marker frames 66 and 68 can be determined. The closer in time acandidate marker frame is to a detected video event, the higher theproximity score for the frame. Although proximity is determined to adetected highlight event that may not occur in every replay clip,collectively the true group of candidate marker frames will receive ahigher proximity score than other groups and will stand out for beingselected as the true seed replay marker despite there being missing orfalse highlight detections.

In another embodiment, in step 60 of FIG. 3, the relationships betweencandidate marker frames in at least one or more groups of candidatemarker frames are used to calculate proximity scores for pairs ofrelated events. Candidate marker frames typically occur in pairs,wherein each pair consists of a start marker frame and an end markerframe. The minimum and maximum distance between the first and secondmarker frames is determined by the expected minimum and maximum lengthsof a replay event, which in one embodiment might be between 10 and 240seconds in duration. The proximity score for each group of candidatemarker frames may be calculated by pairing each candidate marker frames,representing a frame from a group of start marker frames, with themarker frames from a second group of candidate marker frames, eachrepresenting a group of end marker frames. The operation of pairingconsists of matching each candidate marker frame with a relatedcandidate maker frame from the second group. A match occurs when thecandidate marker frame from the second group occurs within the expectedminimum and maximum distance from the candidate marker frame of thefirst group. A candidate marker frame with a match outside the expectedminimum and maximum length of a replay event can be excluded from theproximity score for related events. Overlapping events may also beexcluded. The proximity score for a group is the best pairing betweenthe candidate marker frames and the candidate marker frames of a secondgroup. In a group consisting of start or end marker frames, the valuesof the Color Layout Descriptor of the candidate marker frames in a groupwill have a small range of values. Therefore, the variance of the ColorLayout Descriptors for the candidate marker frames in a first grouppaired with the candidate marker frames in a second group could be usedto validate that the first group contains a set of start frames insteadof a random collection of similar but unrelated frames.

In step 62 of FIG. 3, at least one group is identified based on havingthe best proximity score as seed marker frames for demarcating replaysegments. See marker frame 70 in FIG. 3. The demarcating segments in thevideo file 50 can be identified and verified by searching and matchingneighbor frames surrounding the seed marker frame 70 located atdifferent time instances in the video file 50. As an alternative, theseed marker frame 70 may be used as a one-frame demarcating segment.With the seed marker frame 70 identified as a result of performingprocess 52, a step 72 of locating the identified demarcating segmentswithin the video file 50 can then be accomplished for purposes ofdetermining the start and end times 74 of highlights or replays withinthe video file 50.

FIGS. 4-8 represent results of applying the method discussed above andaccording to FIGS. 9 and 10 to a test video of an actual televisedbroadcast of a football game. The test video has a playing time of threehours and is comprised of 323,678 separate video frames. All of theoriginal frames, including advertisements shown during the televisedbroadcast, were included in the testing. Each replay video segment inthe test video is sandwiched by two different demarcating segments, onedemarcating the start of the replay clip and one demarcating the end ofthe replay clip. Each demarcating segment includes a number of markerframes. For purposes of this example, a single marker frame is selectedfrom each of the demarcating segments and is used for identifying replayclips and determining proximity scores from telestration input events.

In the test video, twenty-six separate telestration input events weredetected and thereby indicate that there is at least twenty-six separatepoints in the test video where a replay clip may be provided. With useof the method described above and in FIGS. 9 and 10, two marker framesare identified, one for the beginning of the replay and the other forthe end. In total, seventy-six replay clips were identified by searchingthe three hour playing time of the test video for the identified seedmarker frames. If telestration events by themselves are used to locatereplay clips in the test video, only twenty-six replay clips would beidentified. However, by using the method disclosed above in whichtelestration events are used only for purposes of producing proximatelyscores for groups of candidate marker frames (i.e., visually distinctiveframes), seventy-six replay clips were able to be accurately identifiedin the test video.

FIG. 4A and FIG. 4B together represent twelve histograms 100, 102, 104,106, 108, 110 (depicted in FIG. 4A), and 112, 114, 116, 118, 120, and122 (depicted in FIG. 4B) for the twelve coefficients of CLD generatedfor each of the 323,678 separate video frames of the test video. Theseprovide a set of features for each frame. The Color Layout Descriptors(CLDs) capture spatial distribution of color in an image or frame ofvideo, and the color histograms are representations of the distributionsof colors in an image or frame of video or sequence of frames.

As shown in FIG. 9, these video features (i.e., the CLD coefficientsshown in FIG. 4A and FIG. 4B) are used in step 200 for building astatistical model 202 for the video, and the video features for eachframe is then plugged into the statistical model in step 204 to generatea twelve-coefficient probability vector 206 for each frame. In step 208,the probability vector is mapped into a scalar, e.g. by Euclidean norm.For example, the plot 124 shown in FIG. 5 is the Euclidean norm of theprobability vector for each frame of the test video. In step 210, theframes with norm value that are less than a threshold T (for instance,as shown in FIG. 5) are selected so that in step 212 the candidatemarker frames 214 can be detected.

In FIG. 5, common video content of the test video is represented in themid-level part of the plot 124 and frames which extend below T represent“rare” frames or frames which are distinctive from the common content.For the test video, 27,155 frames (or 8.3% of video frames) out of thetotal of 323,683 frames of the test video were selected as candidatemarker frames by use of the plot 124 and threshold operation. FIG. 6provides a magnified view of a section 126 of the plot 124. Here, theframes which extend below the threshold T can be readily identified.

Each of the 27,155 candidate marker frames 214 identified in the testvideo was grouped with visually similar candidate marker frames that aretemporally scattered throughout the test video. See step 216 in FIG. 10.One or more of the groups must be identified for the start/end of replayclips. Out of the 27,155 selected candidate marker frames in the testvideo, 10,322 hash entries (candidate marker groups) were generatedbased on visual similarity among the frames. Sample video frames forthree of the 10,322 groups are shown at the bottom of FIG. 7 as groups128, 130 and 132 of candidate marker frames.

In step 218 of FIG. 10, the collective proximity score for each of thegroups is calculated. Event input 220 is used for purposes ofcalculating the proximity score. In the test video, the event input 220was telestration, and there was twenty-six separately detectabletelestration events detected throughout the test video. One of thetelestration events was used to detect the replay clip 134 shown belowthe probability distribution plot 136 in FIG. 7. Here, a framecorresponding to the group 128 shown in FIG. 7 is spaced furthest fromthe replay clip 134 and clearly will be given the lowest proximity scorefor the replay clip 134. In contrast, a frame corresponding to the group130 has the highest proximity score relative to the start of the replayclip 134, and a frame corresponding to the group 132 has the highestproximity score relative to the end of the replay clip 134.

A score is calculated for each group for each of the replay clipsdetected as having telestration. The collective result is determined foreach group and thereafter, each group is ranked by proximity score instep 222 of FIG. 10.

Thus, the collective result is used to identify the most likely groupsindicating the seed marker frames 224 of the start and end of eachreplay from the 10,322 candidate marker groups. As shown in FIG. 8, thegroup 130 of candidate marker frames was selected as the true replaystart marker frame and the group 132 of candidate marker frames wasselected as the true replay ending marker frame for the test video. Withthese marker frames, seventy-six separate replay clips were detected andlocated within the three hour test video.

As shown in FIG. 10, the video is searched for frames matching the seedmarker frames 224 in step 226 for use in determining the demarcatingsegments 228 which may include a sequence of video frames adjacent theseed marker frames that are repeated throughout the video with the seedmarker frames 224. Thereafter, segments occurring within the video thatmatch the signature or video features of the demarcating segments 228are located within the video in step 230 and are used to identify thedesired video clips 232 in the video (i.e., replay clips in theexample). For instance, the average CLD coefficients of selected markerframes can be used as signatures for identifying the start and end ofreplay clips occurring throughout the three hour test video. In oneembodiment, identifying the desired video clips 232 can comprise storingthe time of occurrence of demarcating segments 228 within the video. Thetime of occurrence may be represented, for example, as the time inhours, minutes, seconds, and fractional seconds from the beginning ofthe video to the occurrence of the demarcating segment. In anotherexample, the time of occurrence may be represented as the count of videoframes from the beginning of the video to the occurrence of thedemarcating segment. Identifying the desired video clips may furthercomprise storing the times of occurrence in a data store for laterretrieval. In some embodiments, the time of occurrence may be storedwith an indication of whether the demarcating segment signified thestart of a replay or the end of a replay.

The above example demonstrates that the two step process including useof input events, such as telestration, to qualify marker frames and thenuse of qualified marker frames to detect replay clips, provides betterresults than the mere direct use of input events, such as telestration,to search for replay clips in the test video.

FIG. 11 demonstrates the effectiveness of proximity scoring as discussedabove. In the video time line 300 in FIG. 11, replay clips 302, 304,306, 308 and 310 are shown. A telestration event 312 is detected in eachof replay clips 302, 306, 308 and 310, but not in replay clip 304. Inaddition, a false telestration event 312 that does not occur during areplay clip is shown as occurring between replay clips 306 and 308.Marker frames 314 demarcate the beginning of each replay clip andcandidate marker frames 316 represent visually distinct frames that areunrelated to demarcating replay clips.

In FIG. 11, a proximity score curve 318 is located adjacent eachtelestration event 312. The closer the marker frame 314 or othercandidate marker frames 316 are to a telestration event 312, the higherthe proximity score for the frame. For example, with respect to replayclips 302, 304, 306 and 308, the adjacent marker frames 314 each obtaina proximity score as shown as circled extending toward a proximity curve318. However, the marker frame 314 adjacent to replay clip 304 does notobtain a score (i.e., score=0) because replay clip 304 does not includea telestration event 312. Likewise, the candidate marker frame 316 thatis located between clips 304 and 306, the second of the two candidatemarker frames 316 located between clips 306 and 308, and the candidatemarker frame 316 located after clip 310 fail to obtain a score (i.e.,score=0).

Although not a seed marker frame, the first of the candidate markerframes 316 between replay clips 306 and 308 obtains a score based on itsproximity to the false occurrence of a telestration event 312, and thecandidate marker frame 316 occurring shortly before replay clip 310obtains a score due to its close proximity to replay clip 310. However,based on the use of collective scoring within the group and notindividual frame score, the collective proximity score of the group ofcandidate marker frames 316 will be less than that of the group of truemarker frames 314. This is true despite telestration events not beingpresent in each replay clip and despite telestration events occurringoutside of replay clips. Provided the majority of true marker frames areadjacent to replay clips having telestration events, the true group ofmarker frames will be selected over other groups of candidate markerframes.

While the above examples primarily focus on automatic detection ofreplay clips in broadcast videos of football games, this is onlyprovided by way of example and replays in any type of sports broadcastor any type of desired video segment that is demarcated in some mannerwithin a video of any type of subject matter that is not limited tobroadcast sports games, can be automatically detected.

Further, a video processing electronic device configured toautomatically detect frames in a video that demarcate a pre-determinedtype of video segment within the video is also contemplated. Forinstance, such a device may include at least one processing unitconfigured to identify candidate marker frames within a video asdiscussed above, group the candidate marker frames into a plurality ofgroups based on visual similarity as discussed above, compute a scorefor each of the groups based on temporal proximity of each of thecandidate marker frames within the group to a detected event in thepre-determined type of video segment within the video as discussedabove, and select at least one of the groups based on the score asmarker frames that demarcate the pre-determined type of video segment.Such a device may also be configured to automatically locate thepre-determined type of video segments within the video by detecting themarker frames in the video and generate a highlight video containingonly the pre-determined video segments.

The above referenced device and processing unit may include variousprocessors, microprocessors, controllers, chips, disk drives, and likeelectronic components, modules, equipment, resources, servers, and thelike for carrying out the above methods and may physically be providedon a circuit board or within another electronic device. It will beapparent to one of ordinary skill in the art that the processors,controllers, modules, and other components may be implemented aselectronic components, software, hardware or a combination of hardwareand software.

For example, at least one non-transitory computer readable storagemedium having computer program instructions stored thereon that, whenexecuted by at least one processor, cause the at least one processor toautomatically detect frames in a video that demarcate a pre-determinedtype of video segment within the video is contemplated by the abovedescribed embodiments.

In the foregoing specification, specific embodiments have beendescribed. However, one of ordinary skill in the art appreciates thatvarious modifications and changes can be made without departing from thescope of the embodiments as set forth in the claims below. Accordingly,the specification and figures are to be regarded in an illustrativerather than a restrictive sense, and all such modifications are intendedto be included within the scope of the embodiments.

We claim:
 1. A method of detecting frames in a video that demarcate apre-determined type of video segment within the video, comprising thesteps of: identifying visually distinctive frames within the video ascandidate marker frames; grouping the candidate marker frames into aplurality of groups based on visual similarity; computing a collectivescore for each of the groups based on temporal proximity of each of thecandidate marker frames in each of the groups to related events withinthe video; and selecting at least one of the groups based on thecollective scores as marker frames that demarcate the pre-determinedtype of video segment.
 2. A method according to claim 1, furthercomprising the step of locating the pre-determined type of videosegments within the video by detecting location of marker frames in thevideo.
 3. A method according to claim 2, further comprising the step ofcreating non-linear video content including the pre-determined type ofvideo segments.
 4. A method according to claim 1, wherein said relatedevents within the video are detected events within the video.
 5. Amethod according to claim 4, wherein said detected events are selectedfrom a group consisting of slow motion, telestration, and absence ofscore panel, and wherein said selecting step includes determining thegroup of candidate markers having a collective score indicating theclosest temporal proximity to the detected events.
 6. A method accordingto claim 1, wherein said related events within the video are candidatemarker frames from a second group of candidate marker frames, andwherein each of the candidate marker frames from the second group ofcandidate marker frames demarcates the end of a pre-determined type ofvideo segment within the video.
 7. A method according to claim 1,wherein said identifying step includes a step of separately evaluatingeach frame of the video.
 8. A method according to claim 1, wherein saidevaluating step includes transforming each frame of the video into a setof visual features.
 9. A method according to claim 8, wherein the set ofvisual features includes at least one of a Color Layout Descriptor(CLD), a color histogram, and an Edge Histogram Descriptor (EHD).
 10. Amethod according to claim 8, wherein said identifying step includes astep of generating a probability distribution for the set of visualfeatures.
 11. A method according to claim 10, wherein said identifyingstep includes classifying frames of the video as being a visuallydistinctive candidate marker frame based on crossing a threshold definedwithin the probability distribution.
 12. A method according to claim 1,wherein said grouping step includes a step of determining visualsimilarity between candidate marker frames so that visually similarcandidate marker frames are placed in the same group.
 13. A methodaccording to claim 12, wherein said grouping step includes hashing. 14.A method according to claim 1, wherein the marker frames demarcate atleast one of the beginning and end of the pre-determined type of videosegment.
 15. A method according to claim 1, wherein the pre-determinedtype of video segment includes replay video segments.
 16. A methodaccording to claim 1, further comprising the step of searching andmatching for the marker frames and neighbor frames surrounding themarker frames at different locations within the video.
 17. A videoprocessing electronic device for detecting frames in a video thatdemarcate a pre-determined type of video segment within the video,comprising at least one processing unit configured to: identify visuallydistinctive candidate marker frames within the video; group thecandidate marker frames into a plurality of groups based on visualsimilarity; compute a score for each of the groups based on temporalproximity of each of the candidate marker frames within the group torelated events in the pre-determined type of video segment within thevideo; and select at least one of the groups based on the score asmarker frames that demarcate the pre-determined type of video segment.18. A video processing electronic device according to claim 17, whereinsaid at least on processing unit is configured to automatically locatethe pre-determined type of video segments within the video by detectingthe marker frames in the video and to create video content including thepre-determined video segments.
 19. At least one non-transitory computerreadable storage medium having computer program instructions storedthereon that, when executed by at least one processor, cause the atleast one processor to automatically detect frames in a video thatdemarcate a pre-determined type of video segment within the video byperforming the following operations: identify visually distinctivecandidate marker frames within the video; group the candidate markerframes into a plurality of groups based on visual similarity; compute ascore for each of the groups based on temporal proximity of each of thecandidate marker frames within the group to related events in thepre-determined type of video segment within the video; and select atleast one of the groups based on the score as marker frames thatdemarcate the pre-determined type of video segment.
 20. At least onenon-transitory computer readable storage medium having computer programinstructions stored thereon according to claim 19, wherein when thecomputer program instructions are executed by at least one processor,the pre-determined type of video segments within the video areautomatically detected by detecting the marker frames in the video.